package com.joysuch.wwyt.openapi.controllers.controllerV1.req;

import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: JamesZY
 * @date: 2021/8/23
 * @description:
 */
@Data
public class ApiV1BaseUserReq extends ApiV1PagePropertyReq implements Serializable {

    private static final long serialVersionUID = 2362154536722209758L;
    //人员唯一编码
    private String uniqueId;
    //姓名
    private String realName;
    //性别
    private String gender;
    //工号
    private String code;
    //组织唯一码
    private String departUniqueId;
    //岗位唯一码
    private String jobUniqueId;
    // 证件类型
    private Long idCardType;
    // 证件号码
    private String idCardNo;
    //定位卡号
    private String sn;
    //门禁卡号
    private String cardNumber;
    // 更新起始时间
    @Pattern(regexp = "2[0-9]{3}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}", message = "开始时间格式错误")
    private String startUpdateTime;
    //更新截止时间
    @Pattern(regexp = "2[0-9]{3}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}", message = "截止时间格式错误")
    private String endUpdateTime;

}
